package com.ylbh.modules.job.task;

import com.ylbh.modules.comment.service.CommentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author: czx
 * @date: 2019/10/24 15:13
 */
@Component("commentTask")
public class CommentTask implements ITask {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private CommentService commentService;

    @Override
    public void run(String params) {

        logger.info("开始定时执行评论");
        commentService.commentTask();
        logger.info("结束定时执行评论");

    }
}
